package com.example.demo.entity;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author 港某
 * @date 2021/9/14 11:11
 */
@Data
public class User {

    private String id;
    @NotNull(message = "身份证不能为空")
    @NotBlank(message = "身份证不能为空")
    private String cardId;
    @NotNull(message = "姓名不能为空")
    @NotBlank(message = "姓名不能为空")
    private String name;
    private String sex;
    private String phone;
    private int age;
    private String address;


}
